package com.example.app01.service

import retrofit2.Call
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.GET
import retrofit2.http.POST

class Student(val studentId:Int,val name:String,val password:String,val attendanceTime:Int){
    override fun toString(): String {
        return "Student(studentId=$studentId, name='$name', password='$password', attendanceTime=$attendanceTime)"
    }
}
interface StudentService {
    @FormUrlEncoded
    @POST("student/queryAllStudent")
    fun getStudentData(@Field("username") username : String): Call<List<Student>>
}